package com.example.design.bilibili.mediator;

public class Curtains extends Colleague{


    public Curtains(Mediator mediator, String name) {
        super(mediator, name);
        mediator.Register(name,this);
    }

    @Override
    public void sendMessage(int stateChange) {

        this.getMediator().GetMessage(stateChange,this.name);
    }

    public void upCurtains(){
        System.out.println("I am holding UP Curtains");
    }
}
